//
//  ZFBadgeStretchView.h
//  ZFBadgeView
//
//  Created by fyzq on 2021/9/7.
//

#import <UIKit/UIKit.h>

typedef void(^CompleteBlock)(void);
NS_ASSUME_NONNULL_BEGIN

@interface ZFBadgeStretchView : UIView
///文字
@property(nonatomic,copy)NSString *text;
///文字颜色
@property(nonatomic,strong)UIColor *textColor;
///文字大小
@property(nonatomic,strong)UIFont *font;
///背景颜色
@property(nonatomic,strong)UIColor *bgColor;
///背景图片
@property(nonatomic,strong,)UIImage *image;
///间距 (0,5,0,5)
@property(nonatomic)UIEdgeInsets edgeInsets;



///可不可以拖动 默认NO
@property(nonatomic,assign)BOOL canDrag;
///可不可以长按销毁 默认NO
@property(nonatomic,assign)BOOL canLoogPress;
///最大拖拽距离 默认80
@property(nonatomic,assign)CGFloat maxDragDistance;
////完成销毁回调
@property(nonatomic,strong)CompleteBlock completeBlock;

////////////////////////只用于记录数据单独设置不能显示///////////////////////////////////////////////////
@property(nonatomic,assign)CGPoint position;
@end

@interface ZFBadgeControl : UIControl

@property(nonatomic,strong,readonly)UILabel *titleLabel;
///背景图片
@property(nonatomic,strong,)UIImage *image;
///间距 (0,5,0,5)
@property(nonatomic)UIEdgeInsets edgeInsets;
///背景颜色
@property(nonatomic,strong)UIColor *bgColor;

@end



NS_ASSUME_NONNULL_END
